<template>
  <div class="dashboard-container">
  <div>
    <span class="dashboard-text">昵称:{{ name  }}</span>
    <sapn class="dashboard-text" style="margin-left:20px">角色:<span v-for="role in roles" :key="role">{{ role }}</span>
    </sapn>
  </div>
  <div>
    <div style="width:300px;height:300px;background:aliceblue;margin:20px;display:inline-block">
      <span>this is message</span>
    </div>

    <div style="width:300px;height:300px;background:aliceblue;margin:20px;display:inline-block">
       <span>this is emials</span>
    </div>

    <div style="width:300px;height:300px;background:aliceblue;margin:20px;display:inline-block">
       <span>this is news</span>
    </div>
  </div>

   <div>
    <div style="width:300px;height:300px;background:aliceblue;margin:20px;display:inline-block">
       <span style="">this is handleMessage</span>
    </div>

    <div style="width:300px;height:300px;background:aliceblue;margin:20px;display:inline-block">
       <span>this is warning</span>
    </div>

    <div style="width:300px;height:300px;background:aliceblue;margin:20px;display:inline-block">
       <span>this is fix</span>
    </div>
  </div>
  </div>
</template>

<script>
import { mapGetters } from 'vuex'

export default {
  name: 'Dashboard',
  computed: {
    ...mapGetters([
      'name',
      'roles'
    ])
  }
}
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}
</style>
